//
//  NetWorkTools.h
//  微博
//
//  Created by 沈艳男 on 15/11/13.
//  Copyright © 2015年 沈艳男. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFHTTPSessionManager.h"

typedef enum : NSUInteger {
    GET,
    POST
} RequestMethod;

@interface NetWorkTools : AFHTTPSessionManager
// 回调地址
@property (nonatomic, copy) NSString *redirect;
// OAuth地址
@property (nonatomic, strong) NSURL *oauthUrl;
@property (nonatomic, copy) NSString *client;
@property (nonatomic, copy) NSString *secret;

+ (instancetype)sharedNetWorkToosl;
- (void)requset:(RequestMethod)method URLString:(NSString *)urlString parameters:(id)parameters success:(void (^)(id))success error:(void (^)(NSError *e))error;

@end
